import {
	createRouter,
	createWebHistory
} from 'vue-router'

const routes = [{
		path: '/',
		name: 'Layout',
		//布局1
		component: () => import('@/layout/index.vue'),
		children: [{
				path: '/flex',
				component: () => import('@/views/examples/flex.vue'),
			},
			{
				path: '/stream',
				component: () => import('@/views/examples/stream.vue'),
			},
			{
				path: '/auto',
				component: () => import('@/views/examples/auto.vue'),
			}
		]
	},
	{
		path: '/noEnableLayout',
		name: 'noEnableLayout',
		component: () => import('@/views/examples/noEnableLayout.vue'),
	},
]

const router = createRouter({
	history: createWebHistory(process.env.BASE_URL),
	routes
})

export default router
